package com.xzl.time.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.xzl.time.pojo.Article;
import com.xzl.time.pojo.vo.UpdArticleVo;

/**
 * <p>
 * 文章 服务类
 * </p>
 *
 * @author zhoubin
 * @since 2021-12-03
 */
public interface IArticleService extends IService<Article> {
    Article selectById(String id);
    PageInfo<Article> selectList(Integer page, Integer size, String userName);
    Article addArticle(Article article);
    void delArticleById(String id);
    void updArticleById(UpdArticleVo article);

    PageInfo<Article> getArticleByUserName(Integer page, Integer size, String userName);

    Boolean follow(String authorId, String userId);

    int thumbsUp(String authorId, String userId, String articleId);
}
